Skip to content

feat: add ArrowClientExt::insert_arrow_with()#436

Open
abonander wants to merge 1 commit into
mainfrom
ab/insert-arrow-with
Open

feat: add ArrowClientExt::insert_arrow_with()#436
abonander wants to merge 1 commit into
mainfrom
ab/insert-arrow-with

Conversation

@abonander
Copy link
Copy Markdown
Contributor

Summary

Adds ArrowClientExt::insert_arrow_with() taking a raw SQL statement which will be useful in the ADBC driver as we'll need to synthesize our own to support the various ingest modes.

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided so that we can include it in CHANGELOG later

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@abonander abonander force-pushed the ab/insert-arrow-with branch from a378a38 to 335f375 Compare June 1, 2026 19:33
Comment thread ext-arrow/src/lib.rs
let insert = client
.insert_formatted_with(sql)
// Prevent ClickHouse from double-compressing
.with_setting("output_format_arrow_compression_method", "none")
Copy link
Copy Markdown

@joe-clickhouse joe-clickhouse Jun 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this'll be a no-op for inserts? Any double compression concerns on insert would be in the transport-level on top of Arrow. Also, that same 5 line method chain is repeated twice, only diff seems to be where the sql comes from. Possible op to factor it out...not a big deal though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants